package com.itmayiedu.api.service;

import com.itmayiedu.base.ResponseBase;
import com.itmayiedu.entity.PaymentInfo;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author cht 【wonderfor@vip.qq.com】
 * @Date 2018/10/31
 */
@RequestMapping("/pay")
public interface PayService {

    @RequestMapping("/createToken")
    public ResponseBase createToken(@RequestBody PaymentInfo paymentInfo);

    /**
     * 使用支付令牌查询支付信息
     * @param payToken
     * @return
     */
    @RequestMapping("/findPayToken")
    public ResponseBase findPayToken(@RequestParam("payToken") String payToken);
}
